<?php
/**
 * @Author: rocky
 * Date: 2019/12/11
 * Time: 16:44
 */


namespace app\shop\resource;


use app\common\resource\BaseResource;

class SpellUserJoinResource extends BaseResource
{
    public function toArray($order){
        return [
            'id'=>$order['user']['id'],
            'nickname'=>$order['user']['nickname'],
            'headimg'=>$order['user']['headimg']
        ];
    }
}